.class public Lcom/estrongs/android/ui/notification/c;
.super Ljava/lang/Object;
.source "EsNotification.java"


# static fields
.field private static s:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field private static t:Lcom/estrongs/android/ui/notification/ESTaskService;

.field private static u:Landroid/content/ServiceConnection;

.field private static v:Z

.field private static w:Ljava/util/concurrent/atomic/AtomicInteger;


# instance fields
.field private a:Landroid/content/Context;

.field protected b:Landroid/app/NotificationManager;

.field private c:Z

.field private d:I

.field private e:Ljava/lang/CharSequence;

.field private f:Landroid/app/PendingIntent;

.field private g:Landroid/app/PendingIntent;

.field private h:Landroid/widget/RemoteViews;

.field private i:J

.field private j:J

.field private k:Landroid/text/TextPaint;

.field protected l:I

.field public m:J

.field public n:J

.field private o:Z

.field private p:Z

.field private q:Z

.field private r:Landroidx/core/app/NotificationCompat$Builder;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .line 1
    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    sput-object v0, Lcom/estrongs/android/ui/notification/c;->s:Ljava/util/Set;

    .line 2
    new-instance v0, Lcom/estrongs/android/ui/notification/c$a;

    invoke-direct {v0}, Lcom/estrongs/android/ui/notification/c$a;-><init>()V

    sput-object v0, Lcom/estrongs/android/ui/notification/c;->u:Landroid/content/ServiceConnection;

    .line 3
    new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V

    sput-object v0, Lcom/estrongs/android/ui/notification/c;->w:Ljava/util/concurrent/atomic/AtomicInteger;

    .line 4
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x1

    .line 1
    invoke-direct {p0, p1, v0}, Lcom/estrongs/android/ui/notification/c;-><init>(Landroid/content/Context;Z)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Z)V
    .locals 1

    const/4 v0, 0x0

    .line 2
    invoke-direct {p0, p1, p2, v0}, Lcom/estrongs/android/ui/notification/c;-><init>(Landroid/content/Context;ZZ)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;ZZ)V
    .locals 4

    .line 3
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-wide/16 v0, -0x1

    .line 4
    iput-wide v0, p0, Lcom/estrongs/android/ui/notification/c;->i:J

    .line 5
    iput-wide v0, p0, Lcom/estrongs/android/ui/notification/c;->j:J

    .line 6
    new-instance v0, Landroid/text/TextPaint;

    invoke-direct {v0}, Landroid/text/TextPaint;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/ui/notification/c;->k:Landroid/text/TextPaint;

    const-wide/16 v0, 0x0

    .line 7
    iput-wide v0, p0, Lcom/estrongs/android/ui/notification/c;->m:J

    .line 8
    iput-wide v0, p0, Lcom/estrongs/android/ui/notification/c;->n:J

    const/4 v0, 0x0

    .line 9
    iput-boolean v0, p0, Lcom/estrongs/android/ui/notification/c;->o:Z

    .line 10
    iput-object p1, p0, Lcom/estrongs/android/ui/notification/c;->a:Landroid/content/Context;

    .line 11
    iput-boolean p2, p0, Lcom/estrongs/android/ui/notification/c;->p:Z

    .line 12
    iput-boolean p3, p0, Lcom/estrongs/android/ui/notification/c;->q:Z

    .line 13
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p1

    invoke-static {p1}, Les/dh0;->a(Landroid/app/Application;)Les/dh0;

    move-result-object p1

    const-string p2, "general_remind"

    .line 14
    invoke-virtual {p1, p2}, Les/dh0;->a(Ljava/lang/String;)Landroidx/core/app/NotificationCompat$Builder;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/notification/c;->r:Landroidx/core/app/NotificationCompat$Builder;

    .line 15
    iput-boolean v0, p0, Lcom/estrongs/android/ui/notification/c;->c:Z

    .line 16
    sget-object p1, Lcom/estrongs/android/ui/notification/c;->w:Ljava/util/concurrent/atomic/AtomicInteger;

    const/4 p2, 0x1

    invoke-virtual {p1, p2}, Ljava/util/concurrent/atomic/AtomicInteger;->addAndGet(I)I

    move-result p1

    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v0

    long-to-int p3, v0

    add-int/2addr p1, p3

    iput p1, p0, Lcom/estrongs/android/ui/notification/c;->d:I

    .line 17
    iget-object p1, p0, Lcom/estrongs/android/ui/notification/c;->k:Landroid/text/TextPaint;

    const/high16 p3, 0x41800000    # 16.0f

    invoke-virtual {p1, p3}, Landroid/text/TextPaint;->setTextSize(F)V

    .line 18
    iget-object p1, p0, Lcom/estrongs/android/ui/notification/c;->a:Landroid/content/Context;

    const-string p3, "notification"

    invoke-virtual {p1, p3}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroid/app/NotificationManager;

    iput-object p1, p0, Lcom/estrongs/android/ui/notification/c;->b:Landroid/app/NotificationManager;

    .line 19
    sget-object p1, Lcom/estrongs/android/ui/notification/c;->t:Lcom/estrongs/android/ui/notification/ESTaskService;

    if-eqz p1, :cond_1

    .line 20
    sget-object p1, Lcom/estrongs/android/ui/notification/c;->s:Ljava/util/Set;

    monitor-enter p1

    .line 21
    :try_start_0
    iget-boolean p3, p0, Lcom/estrongs/android/ui/notification/c;->p:Z

    if-eqz p3, :cond_0

    .line 22
    sget-object p3, Lcom/estrongs/android/ui/notification/c;->s:Ljava/util/Set;

    iget v0, p0, Lcom/estrongs/android/ui/notification/c;->d:I

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-interface {p3, v0}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 23
    sget-boolean p3, Lcom/estrongs/android/ui/notification/c;->v:Z

    if-nez p3, :cond_0

    .line 24
    invoke-direct {p0}, Lcom/estrongs/android/ui/notification/c;->h()Landroid/app/Notification;

    move-result-object p3
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 25
    :try_start_1
    sget-object v0, Lcom/estrongs/android/ui/notification/c;->t:Lcom/estrongs/android/ui/notification/ESTaskService;

    sget-object v1, Lcom/estrongs/android/ui/notification/c;->w:Ljava/util/concurrent/atomic/AtomicInteger;

    invoke-virtual {v1, p2}, Ljava/util/concurrent/atomic/AtomicInteger;->addAndGet(I)I

    move-result v1

    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v2

    long-to-int v3, v2

    add-int/2addr v1, v3

    invoke-virtual {v0, v1, p3}, Landroid/app/Service;->startForeground(ILandroid/app/Notification;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catch_0
    move-exception p3

    .line 26
    :try_start_2
    invoke-virtual {p3}, Ljava/lang/Exception;->printStackTrace()V

    .line 27
    :goto_0
    sput-boolean p2, Lcom/estrongs/android/ui/notification/c;->v:Z

    .line 28
    :cond_0
    monitor-exit p1

    goto :goto_1

    :catchall_0
    move-exception p2

    monitor-exit p1
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    throw p2

    :cond_1
    :goto_1
    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/notification/ESTaskService;)Lcom/estrongs/android/ui/notification/ESTaskService;
    .locals 0

    .line 1
    sput-object p0, Lcom/estrongs/android/ui/notification/c;->t:Lcom/estrongs/android/ui/notification/ESTaskService;

    return-object p0
.end method

.method private a(IZ)V
    .locals 0

    if-eqz p2, :cond_0

    .line 27
    iget p2, p0, Lcom/estrongs/android/ui/notification/c;->l:I

    or-int/2addr p1, p2

    iput p1, p0, Lcom/estrongs/android/ui/notification/c;->l:I

    goto :goto_0

    .line 28
    :cond_0
    iget p2, p0, Lcom/estrongs/android/ui/notification/c;->l:I

    xor-int/lit8 p1, p1, -0x1

    and-int/2addr p1, p2

    iput p1, p0, Lcom/estrongs/android/ui/notification/c;->l:I

    :goto_0
    return-void
.end method

.method private h()Landroid/app/Notification;
    .locals 6
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .line 1
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/4 v1, 0x0

    const/16 v2, 0x12

    if-lt v0, v2, :cond_0

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    new-instance v2, Landroid/content/Intent;

    invoke-direct {v2}, Landroid/content/Intent;-><init>()V

    invoke-static {v0, v1, v2, v1}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v0

    .line 3
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v1

    invoke-static {v1}, Les/dh0;->a(Landroid/app/Application;)Les/dh0;

    move-result-object v1

    const-string v2, "general_remind"

    .line 4
    invoke-virtual {v1, v2}, Les/dh0;->a(Ljava/lang/String;)Landroidx/core/app/NotificationCompat$Builder;

    move-result-object v1

    .line 5
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v2

    const v3, 0x7f110a59

    invoke-virtual {v2, v3}, Landroid/app/Application;->getText(I)Ljava/lang/CharSequence;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroidx/core/app/NotificationCompat$Builder;->setTicker(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$Builder;

    move-result-object v2

    .line 6
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v4

    const v5, 0x7f110122

    invoke-virtual {v4, v5}, Landroid/app/Application;->getText(I)Ljava/lang/CharSequence;

    move-result-object v4

    invoke-virtual {v2, v4}, Landroidx/core/app/NotificationCompat$Builder;->setContentText(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$Builder;

    move-result-object v2

    .line 7
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v4

    invoke-virtual {v4, v3}, Landroid/app/Application;->getText(I)Ljava/lang/CharSequence;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroidx/core/app/NotificationCompat$Builder;->setContentTitle(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$Builder;

    move-result-object v2

    .line 8
    invoke-virtual {v2, v0}, Landroidx/core/app/NotificationCompat$Builder;->setContentIntent(Landroid/app/PendingIntent;)Landroidx/core/app/NotificationCompat$Builder;

    move-result-object v0

    const v2, 0x7f0807af

    .line 9
    invoke-virtual {v0, v2}, Landroidx/core/app/NotificationCompat$Builder;->setSmallIcon(I)Landroidx/core/app/NotificationCompat$Builder;

    move-result-object v0

    .line 10
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-virtual {v0, v2, v3}, Landroidx/core/app/NotificationCompat$Builder;->setWhen(J)Landroidx/core/app/NotificationCompat$Builder;

    .line 11
    invoke-virtual {v1}, Landroidx/core/app/NotificationCompat$Builder;->build()Landroid/app/Notification;

    move-result-object v0

    goto :goto_0

    .line 12
    :cond_0
    new-instance v0, Landroid/app/Notification;

    const/4 v2, 0x0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/app/Notification;-><init>(ILjava/lang/CharSequence;J)V

    .line 13
    :goto_0
    iget v1, v0, Landroid/app/Notification;->flags:I

    or-int/lit8 v1, v1, 0x20

    iput v1, v0, Landroid/app/Notification;->flags:I

    return-object v0
.end method

.method private i()Z
    .locals 2

    .line 1
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0xe

    if-lt v0, v1, :cond_0

    iget-boolean v0, p0, Lcom/estrongs/android/ui/notification/c;->q:Z

    if-nez v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public static j()V
    .locals 4

    .line 1
    :try_start_0
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v1

    const-class v2, Lcom/estrongs/android/ui/notification/ESTaskService;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 3
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v1

    sget-object v2, Lcom/estrongs/android/ui/notification/c;->u:Landroid/content/ServiceConnection;

    const/4 v3, 0x1

    invoke-virtual {v1, v0, v2, v3}, Landroid/app/Application;->bindService(Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 4
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :goto_0
    return-void
.end method


# virtual methods
.method public a()V
    .locals 5

    const/4 v0, 0x1

    .line 15
    iput-boolean v0, p0, Lcom/estrongs/android/ui/notification/c;->o:Z

    .line 16
    iget-object v1, p0, Lcom/estrongs/android/ui/notification/c;->b:Landroid/app/NotificationManager;

    iget v2, p0, Lcom/estrongs/android/ui/notification/c;->d:I

    invoke-virtual {v1, v2}, Landroid/app/NotificationManager;->cancel(I)V

    .line 17
    sget-object v1, Lcom/estrongs/android/ui/notification/c;->t:Lcom/estrongs/android/ui/notification/ESTaskService;

    const/4 v2, 0x0

    if-eqz v1, :cond_1

    .line 18
    sget-object v1, Lcom/estrongs/android/ui/notification/c;->s:Ljava/util/Set;

    monitor-enter v1

    .line 19
    :try_start_0
    iget-boolean v3, p0, Lcom/estrongs/android/ui/notification/c;->p:Z

    if-eqz v3, :cond_0

    .line 20
    sget-object v3, Lcom/estrongs/android/ui/notification/c;->s:Ljava/util/Set;

    iget v4, p0, Lcom/estrongs/android/ui/notification/c;->d:I

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-interface {v3, v4}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 21
    sget-object v3, Lcom/estrongs/android/ui/notification/c;->s:Ljava/util/Set;

    invoke-interface {v3}, Ljava/util/Set;->isEmpty()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 22
    sget-object v3, Lcom/estrongs/android/ui/notification/c;->t:Lcom/estrongs/android/ui/notification/ESTaskService;

    invoke-virtual {v3, v0}, Landroid/app/Service;->stopForeground(Z)V

    .line 23
    sput-boolean v2, Lcom/estrongs/android/ui/notification/c;->v:Z

    .line 24
    :cond_0
    monitor-exit v1

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    .line 25
    :cond_1
    :goto_0
    iput-boolean v2, p0, Lcom/estrongs/android/ui/notification/c;->c:Z

    return-void
.end method

.method public a(I)V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/notification/c;->r:Landroidx/core/app/NotificationCompat$Builder;

    invoke-virtual {v0, p1}, Landroidx/core/app/NotificationCompat$Builder;->setSmallIcon(I)Landroidx/core/app/NotificationCompat$Builder;

    .line 3
    iget-boolean p1, p0, Lcom/estrongs/android/ui/notification/c;->c:Z

    if-eqz p1, :cond_0

    .line 4
    invoke-virtual {p0}, Lcom/estrongs/android/ui/notification/c;->g()V

    :cond_0
    return-void
.end method

.method public a(Landroid/content/Intent;Z)V
    .locals 2

    const/high16 v0, 0x8000000

    const/4 v1, 0x0

    if-eqz p2, :cond_0

    .line 8
    iget-object p2, p0, Lcom/estrongs/android/ui/notification/c;->a:Landroid/content/Context;

    invoke-static {p2, v1, p1, v0}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/notification/c;->g:Landroid/app/PendingIntent;

    goto :goto_0

    .line 9
    :cond_0
    iget-object p2, p0, Lcom/estrongs/android/ui/notification/c;->a:Landroid/content/Context;

    invoke-static {p2, v1, p1, v0}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/notification/c;->g:Landroid/app/PendingIntent;

    .line 10
    :goto_0
    iget-object p1, p0, Lcom/estrongs/android/ui/notification/c;->r:Landroidx/core/app/NotificationCompat$Builder;

    iget-object p2, p0, Lcom/estrongs/android/ui/notification/c;->g:Landroid/app/PendingIntent;

    invoke-virtual {p1, p2}, Landroidx/core/app/NotificationCompat$Builder;->setDeleteIntent(Landroid/app/PendingIntent;)Landroidx/core/app/NotificationCompat$Builder;

    .line 11
    iget-boolean p1, p0, Lcom/estrongs/android/ui/notification/c;->c:Z

    if-eqz p1, :cond_1

    .line 12
    invoke-virtual {p0}, Lcom/estrongs/android/ui/notification/c;->g()V

    :cond_1
    return-void
.end method

.method public a(Landroid/widget/RemoteViews;)V
    .locals 1

    .line 13
    iput-object p1, p0, Lcom/estrongs/android/ui/notification/c;->h:Landroid/widget/RemoteViews;

    .line 14
    iget-object v0, p0, Lcom/estrongs/android/ui/notification/c;->r:Landroidx/core/app/NotificationCompat$Builder;

    invoke-virtual {v0, p1}, Landroidx/core/app/NotificationCompat$Builder;->setCustomContentView(Landroid/widget/RemoteViews;)Landroidx/core/app/NotificationCompat$Builder;

    return-void
.end method

.method public a(Ljava/lang/CharSequence;)V
    .locals 1

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/ui/notification/c;->r:Landroidx/core/app/NotificationCompat$Builder;

    invoke-virtual {v0, p1}, Landroidx/core/app/NotificationCompat$Builder;->setContentTitle(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$Builder;

    .line 6
    iget-boolean p1, p0, Lcom/estrongs/android/ui/notification/c;->c:Z

    if-eqz p1, :cond_0

    .line 7
    invoke-virtual {p0}, Lcom/estrongs/android/ui/notification/c;->g()V

    :cond_0
    return-void
.end method

.method public a(Z)V
    .locals 1

    const/16 v0, 0x10

    .line 26
    invoke-direct {p0, v0, p1}, Lcom/estrongs/android/ui/notification/c;->a(IZ)V

    return-void
.end method

.method public b()I
    .locals 1

    .line 34
    iget v0, p0, Lcom/estrongs/android/ui/notification/c;->d:I

    return v0
.end method

.method public b(I)V
    .locals 2

    int-to-long v0, p1

    .line 33
    iput-wide v0, p0, Lcom/estrongs/android/ui/notification/c;->j:J

    return-void
.end method

.method public b(Landroid/content/Intent;Z)V
    .locals 2

    .line 13
    invoke-virtual {p1}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 14
    invoke-virtual {p1}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;

    move-result-object v0

    const-class v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 15
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    invoke-static {v0, v1}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    goto :goto_0

    :cond_0
    const/high16 v0, 0x24000000

    .line 16
    invoke-virtual {p1, v0}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    :cond_1
    :goto_0
    const/high16 v0, 0x8000000

    const/4 v1, 0x0

    if-eqz p2, :cond_2

    .line 17
    iget-object p2, p0, Lcom/estrongs/android/ui/notification/c;->a:Landroid/content/Context;

    invoke-static {p2, v1, p1, v0}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/notification/c;->f:Landroid/app/PendingIntent;

    goto :goto_1

    .line 18
    :cond_2
    iget-object p2, p0, Lcom/estrongs/android/ui/notification/c;->a:Landroid/content/Context;

    invoke-static {p2, v1, p1, v0}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/notification/c;->f:Landroid/app/PendingIntent;

    .line 19
    :goto_1
    iget-object p1, p0, Lcom/estrongs/android/ui/notification/c;->r:Landroidx/core/app/NotificationCompat$Builder;

    iget-object p2, p0, Lcom/estrongs/android/ui/notification/c;->f:Landroid/app/PendingIntent;

    invoke-virtual {p1, p2}, Landroidx/core/app/NotificationCompat$Builder;->setContentIntent(Landroid/app/PendingIntent;)Landroidx/core/app/NotificationCompat$Builder;

    .line 20
    iget-boolean p1, p0, Lcom/estrongs/android/ui/notification/c;->c:Z

    if-eqz p1, :cond_3

    .line 21
    invoke-virtual {p0}, Lcom/estrongs/android/ui/notification/c;->g()V

    :cond_3
    return-void
.end method

.method public b(Ljava/lang/CharSequence;)V
    .locals 5

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/notification/c;->i()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/ui/notification/c;->e:Ljava/lang/CharSequence;

    goto :goto_0

    :cond_0
    if-eqz p1, :cond_1

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/notification/c;->k:Landroid/text/TextPaint;

    const/high16 v1, 0x43480000    # 200.0f

    sget-object v2, Landroid/text/TextUtils$TruncateAt;->MIDDLE:Landroid/text/TextUtils$TruncateAt;

    invoke-static {p1, v0, v1, v2}, Landroid/text/TextUtils;->ellipsize(Ljava/lang/CharSequence;Landroid/text/TextPaint;FLandroid/text/TextUtils$TruncateAt;)Ljava/lang/CharSequence;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/notification/c;->e:Ljava/lang/CharSequence;

    goto :goto_0

    :cond_1
    const-string p1, ""

    .line 4
    iput-object p1, p0, Lcom/estrongs/android/ui/notification/c;->e:Ljava/lang/CharSequence;

    .line 5
    :goto_0
    new-instance p1, Ljava/util/Date;

    invoke-direct {p1}, Ljava/util/Date;-><init>()V

    invoke-virtual {p1}, Ljava/util/Date;->getTime()J

    move-result-wide v0

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p1

    .line 6
    invoke-virtual {p1}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    iget-wide v2, p0, Lcom/estrongs/android/ui/notification/c;->n:J

    sub-long/2addr v0, v2

    const-wide/16 v2, 0x12c

    cmp-long v4, v0, v2

    if-gez v4, :cond_2

    iget-wide v0, p0, Lcom/estrongs/android/ui/notification/c;->i:J

    iget-wide v2, p0, Lcom/estrongs/android/ui/notification/c;->j:J

    cmp-long v4, v0, v2

    if-eqz v4, :cond_2

    return-void

    .line 7
    :cond_2
    invoke-virtual {p1}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/estrongs/android/ui/notification/c;->n:J

    .line 8
    iget-wide v0, p0, Lcom/estrongs/android/ui/notification/c;->i:J

    const-wide/16 v2, -0x1

    cmp-long p1, v0, v2

    if-eqz p1, :cond_3

    .line 9
    iget-object p1, p0, Lcom/estrongs/android/ui/notification/c;->r:Landroidx/core/app/NotificationCompat$Builder;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcom/estrongs/android/ui/notification/c;->e:Ljava/lang/CharSequence;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v1, "  "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-wide v1, p0, Lcom/estrongs/android/ui/notification/c;->i:J

    const-wide/16 v3, 0x64

    mul-long v1, v1, v3

    iget-wide v3, p0, Lcom/estrongs/android/ui/notification/c;->j:J

    div-long/2addr v1, v3

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v1, "%"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroidx/core/app/NotificationCompat$Builder;->setContentText(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$Builder;

    goto :goto_1

    .line 10
    :cond_3
    iget-object p1, p0, Lcom/estrongs/android/ui/notification/c;->r:Landroidx/core/app/NotificationCompat$Builder;

    iget-object v0, p0, Lcom/estrongs/android/ui/notification/c;->e:Ljava/lang/CharSequence;

    invoke-virtual {p1, v0}, Landroidx/core/app/NotificationCompat$Builder;->setContentText(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$Builder;

    .line 11
    :goto_1
    iget-boolean p1, p0, Lcom/estrongs/android/ui/notification/c;->c:Z

    if-eqz p1, :cond_4

    .line 12
    invoke-virtual {p0}, Lcom/estrongs/android/ui/notification/c;->g()V

    :cond_4
    return-void
.end method

.method public b(Z)V
    .locals 2

    .line 22
    iget-object v0, p0, Lcom/estrongs/android/ui/notification/c;->r:Landroidx/core/app/NotificationCompat$Builder;

    invoke-virtual {v0, p1}, Landroidx/core/app/NotificationCompat$Builder;->setOngoing(Z)Landroidx/core/app/NotificationCompat$Builder;

    if-nez p1, :cond_1

    .line 23
    sget-object p1, Lcom/estrongs/android/ui/notification/c;->t:Lcom/estrongs/android/ui/notification/ESTaskService;

    if-eqz p1, :cond_1

    .line 24
    sget-object p1, Lcom/estrongs/android/ui/notification/c;->s:Ljava/util/Set;

    monitor-enter p1

    .line 25
    :try_start_0
    iget-boolean v0, p0, Lcom/estrongs/android/ui/notification/c;->p:Z

    if-eqz v0, :cond_0

    .line 26
    sget-object v0, Lcom/estrongs/android/ui/notification/c;->s:Ljava/util/Set;

    iget v1, p0, Lcom/estrongs/android/ui/notification/c;->d:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 27
    sget-object v0, Lcom/estrongs/android/ui/notification/c;->s:Ljava/util/Set;

    invoke-interface {v0}, Ljava/util/Set;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 28
    sget-object v0, Lcom/estrongs/android/ui/notification/c;->t:Lcom/estrongs/android/ui/notification/ESTaskService;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/app/Service;->stopForeground(Z)V

    const/4 v0, 0x0

    .line 29
    sput-boolean v0, Lcom/estrongs/android/ui/notification/c;->v:Z

    .line 30
    :cond_0
    monitor-exit p1

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    .line 31
    :cond_1
    :goto_0
    iget-boolean p1, p0, Lcom/estrongs/android/ui/notification/c;->c:Z

    if-eqz p1, :cond_2

    .line 32
    invoke-virtual {p0}, Lcom/estrongs/android/ui/notification/c;->g()V

    :cond_2
    return-void
.end method

.method public c()Landroid/app/Notification;
    .locals 1

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/notification/c;->r:Landroidx/core/app/NotificationCompat$Builder;

    invoke-virtual {v0}, Landroidx/core/app/NotificationCompat$Builder;->build()Landroid/app/Notification;

    move-result-object v0

    return-object v0
.end method

.method public c(I)V
    .locals 1

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/ui/notification/c;->r:Landroidx/core/app/NotificationCompat$Builder;

    invoke-virtual {v0, p1}, Landroidx/core/app/NotificationCompat$Builder;->setPriority(I)Landroidx/core/app/NotificationCompat$Builder;

    return-void
.end method

.method public c(Ljava/lang/CharSequence;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/notification/c;->r:Landroidx/core/app/NotificationCompat$Builder;

    invoke-virtual {v0, p1}, Landroidx/core/app/NotificationCompat$Builder;->setTicker(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$Builder;

    .line 2
    iget-boolean p1, p0, Lcom/estrongs/android/ui/notification/c;->c:Z

    if-eqz p1, :cond_0

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/android/ui/notification/c;->g()V

    :cond_0
    return-void
.end method

.method public d(I)V
    .locals 5

    int-to-long v0, p1

    .line 1
    iput-wide v0, p0, Lcom/estrongs/android/ui/notification/c;->i:J

    .line 2
    new-instance p1, Ljava/util/Date;

    invoke-direct {p1}, Ljava/util/Date;-><init>()V

    invoke-virtual {p1}, Ljava/util/Date;->getTime()J

    move-result-wide v0

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p1

    .line 3
    invoke-virtual {p1}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    iget-wide v2, p0, Lcom/estrongs/android/ui/notification/c;->m:J

    sub-long/2addr v0, v2

    const-wide/16 v2, 0x12c

    cmp-long v4, v0, v2

    if-gez v4, :cond_0

    iget-wide v0, p0, Lcom/estrongs/android/ui/notification/c;->i:J

    iget-wide v2, p0, Lcom/estrongs/android/ui/notification/c;->j:J

    cmp-long v4, v0, v2

    if-eqz v4, :cond_0

    return-void

    .line 4
    :cond_0
    invoke-virtual {p1}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/estrongs/android/ui/notification/c;->m:J

    .line 5
    iget-boolean p1, p0, Lcom/estrongs/android/ui/notification/c;->c:Z

    if-eqz p1, :cond_1

    .line 6
    iget-wide v0, p0, Lcom/estrongs/android/ui/notification/c;->i:J

    const-wide/16 v2, 0x64

    mul-long v0, v0, v2

    iget-wide v2, p0, Lcom/estrongs/android/ui/notification/c;->j:J

    div-long/2addr v0, v2

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/ui/notification/c;->r:Landroidx/core/app/NotificationCompat$Builder;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Lcom/estrongs/android/ui/notification/c;->e:Ljava/lang/CharSequence;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v3, "  "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v0, "%"

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroidx/core/app/NotificationCompat$Builder;->setContentText(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$Builder;

    .line 8
    invoke-virtual {p0}, Lcom/estrongs/android/ui/notification/c;->g()V

    :cond_1
    return-void
.end method

.method public d()Z
    .locals 1

    .line 9
    iget-boolean v0, p0, Lcom/estrongs/android/ui/notification/c;->o:Z

    return v0
.end method

.method public e()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/ui/notification/c;->c:Z

    return v0
.end method

.method public f()V
    .locals 2

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/ui/notification/c;->c:Z

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/notification/c;->r:Landroidx/core/app/NotificationCompat$Builder;

    iget-object v1, p0, Lcom/estrongs/android/ui/notification/c;->e:Ljava/lang/CharSequence;

    invoke-virtual {v0, v1}, Landroidx/core/app/NotificationCompat$Builder;->setContentText(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$Builder;

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/android/ui/notification/c;->g()V

    :cond_0
    return-void
.end method

.method public g()V
    .locals 3

    .line 1
    :try_start_0
    iget-boolean v0, p0, Lcom/estrongs/android/ui/notification/c;->o:Z

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-virtual {p0}, Lcom/estrongs/android/ui/notification/c;->c()Landroid/app/Notification;

    move-result-object v0

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/ui/notification/c;->h:Landroid/widget/RemoteViews;

    if-eqz v1, :cond_1

    .line 4
    iget-object v1, p0, Lcom/estrongs/android/ui/notification/c;->h:Landroid/widget/RemoteViews;

    iput-object v1, v0, Landroid/app/Notification;->contentView:Landroid/widget/RemoteViews;

    .line 5
    :cond_1
    iget v1, v0, Landroid/app/Notification;->flags:I

    iget v2, p0, Lcom/estrongs/android/ui/notification/c;->l:I

    or-int/2addr v1, v2

    iput v1, v0, Landroid/app/Notification;->flags:I

    .line 6
    iget-object v1, p0, Lcom/estrongs/android/ui/notification/c;->b:Landroid/app/NotificationManager;

    iget v2, p0, Lcom/estrongs/android/ui/notification/c;->d:I

    invoke-virtual {v1, v2, v0}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V

    .line 7
    iget-boolean v0, p0, Lcom/estrongs/android/ui/notification/c;->o:Z

    if-eqz v0, :cond_2

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/ui/notification/c;->b:Landroid/app/NotificationManager;

    iget v1, p0, Lcom/estrongs/android/ui/notification/c;->d:I

    invoke-virtual {v0, v1}, Landroid/app/NotificationManager;->cancel(I)V

    return-void

    :cond_2
    const/4 v0, 0x1

    .line 9
    iput-boolean v0, p0, Lcom/estrongs/android/ui/notification/c;->c:Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method
